.class Lcom/xingbook/park/activity/db;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/xingbook/park/activity/WebAct;

.field private final synthetic b:Z


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/WebAct;Z)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    iput-boolean p2, p0, Lcom/xingbook/park/activity/db;->b:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/db;)Lcom/xingbook/park/activity/WebAct;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 11

    const/4 v6, 0x2

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/WebAct;->g(Lcom/xingbook/park/activity/WebAct;)Lcom/xingbook/ui/XbLayout;

    move-result-object v0

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/app/Activity;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/WebAct;->h(Lcom/xingbook/park/activity/WebAct;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/WebAct;->i(Lcom/xingbook/park/activity/WebAct;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/WebAct;->j(Lcom/xingbook/park/activity/WebAct;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v3

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/WebAct;->k(Lcom/xingbook/park/activity/WebAct;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v0, 0x0

    if-eqz v1, :cond_1

    const-string v5, ""

    invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    :cond_1
    const-string v0, "\u8bf7\u586b\u5199\u59d3\u540d"

    :cond_2
    :goto_1
    if-eqz v0, :cond_7

    iget-object v1, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_3
    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v5

    if-ge v5, v6, :cond_4

    const-string v0, "\u8bf7\u586b\u5199\u6b63\u786e\u7684\u59d3\u540d"

    goto :goto_1

    :cond_4
    if-eqz v2, :cond_5

    const-string v5, ""

    invoke-virtual {v5, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_6

    :cond_5
    const-string v0, "\u8bf7\u586b\u5199\u6536\u8d27\u5730\u5740"

    goto :goto_1

    :cond_6
    invoke-static {v3}, Lcom/xingbook/c/u;->a(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_2

    const-string v0, "\u8bf7\u586b\u5199\u6b63\u786e\u7684\u624b\u673a\u53f7"

    goto :goto_1

    :cond_7
    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    iget-object v5, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v5}, Lcom/xingbook/park/activity/WebAct;->f(Lcom/xingbook/park/activity/WebAct;)I

    move-result v5

    invoke-static {v0, v5}, Lcom/xingbook/park/activity/WebAct;->d(Lcom/xingbook/park/activity/WebAct;I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    iget-object v5, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v5}, Lcom/xingbook/park/activity/WebAct;->b(Lcom/xingbook/park/activity/WebAct;)Lcom/xingbook/ui/ak;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/xingbook/park/activity/WebAct;->setContentView(Landroid/view/View;)V

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v5, "{name:\""

    invoke-direct {v0, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\",addr:\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\",mdn:\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\",postcode:\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\"}"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    invoke-virtual {v0, v10}, Lcom/xingbook/c/j;->c(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/j;->d()J

    move-result-wide v1

    iget-object v3, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v3}, Lcom/xingbook/park/activity/WebAct;->l(Lcom/xingbook/park/activity/WebAct;)Lcom/xingbook/a/h;

    move-result-object v3

    iget-object v3, v3, Lcom/xingbook/a/h;->a:Ljava/lang/String;

    iget-object v4, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v4}, Lcom/xingbook/park/activity/WebAct;->l(Lcom/xingbook/park/activity/WebAct;)Lcom/xingbook/a/h;

    move-result-object v4

    iget-object v4, v4, Lcom/xingbook/a/h;->a:Ljava/lang/String;

    iget-boolean v5, p0, Lcom/xingbook/park/activity/db;->b:Z

    if-eqz v5, :cond_8

    iget-object v5, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v5}, Lcom/xingbook/park/activity/WebAct;->l(Lcom/xingbook/park/activity/WebAct;)Lcom/xingbook/a/h;

    move-result-object v5

    iget v5, v5, Lcom/xingbook/a/h;->d:F

    :goto_2
    new-instance v7, Lcom/xingbook/park/activity/dc;

    iget-object v8, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-direct {v7, p0, v8}, Lcom/xingbook/park/activity/dc;-><init>(Lcom/xingbook/park/activity/db;Landroid/content/Context;)V

    const/4 v8, -0x1

    iget-object v9, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v9}, Lcom/xingbook/park/activity/WebAct;->l(Lcom/xingbook/park/activity/WebAct;)Lcom/xingbook/a/h;

    move-result-object v9

    iget-object v9, v9, Lcom/xingbook/a/h;->e:Ljava/lang/String;

    invoke-static/range {v0 .. v10}, Lcom/xingbook/a/e;->a(Landroid/app/Activity;JLjava/lang/String;Ljava/lang/String;FILcom/xingbook/a/a;ILjava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_8
    iget-object v5, p0, Lcom/xingbook/park/activity/db;->a:Lcom/xingbook/park/activity/WebAct;

    invoke-static {v5}, Lcom/xingbook/park/activity/WebAct;->l(Lcom/xingbook/park/activity/WebAct;)Lcom/xingbook/a/h;

    move-result-object v5

    iget v5, v5, Lcom/xingbook/a/h;->c:F

    goto :goto_2
.end method
